package com.rednote.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rednote.entity.UserViewHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 用户浏览记录表(UserViewHistory)数据库访问层
 *
 * @author yao suxuan
 * @since 2025-05-24 18:10:29
 */
@Mapper
public interface UserViewHistoryMapper extends BaseMapper<UserViewHistory> {
    @Select("SELECT post_id, user_id FROM user_view_history")
    List<Map<String, Object>> getPostUserInteractionsRaw();


}
